package com.example.demo.practice.area;

import android.os.Bundle;
import android.webkit.WebView;

import com.example.demo.practice.R;
import com.example.demo.practice.innerclass.IBaseActivity;
import com.example.demo.practice.ui.WebMapView;

public class AreaDestrib extends IBaseActivity {
    private WebMapView webMapView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_area_distri);
        setTitle("区域分布");

        initMapView();
        //serverHttp = new ServerHttp(handler);
        //serverHttp.setUrl("district");
    }

    private void initMapView() {
        WebView webView = (WebView) findViewById(R.id.mapView);
        webView.loadUrl("http://19.16.71.127:8080/geoserver/areadistrib/wms?service=WMS&version=1.1.0&request=GetMap&layers=areadistrib:fire_enterprise&styles=&bbox=113.5224691,34.77516804,113.6251051,34.85621898&width=768&height=606&srs=EPSG:4326&format=application/openlayers");
        //webMapView = new WebMapView(webView);
        //webMapView.loadMapHtml("html/other/index.html");
    }
}
